<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

<ui:composition template="../template.xhtml">

	<ui:define name="titre">Articles</ui:define>

	<ui:define name="contenu">
		<h:form>
			<p:growl id="messages" showDetail="true" />
			<p:dataGrid var="article" value="#{articleBean.articles}" columns="3"  
		        rows="12" paginator="true"  
		        paginatorTemplate="{CurrentPageReport}  {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"  
		        rowsPerPageTemplate="9,12,15">  
		          
		        <p:column>  
		            <p:panel header="#{article.titre}" style="text-align:center">  
		                <h:panelGrid columns="2" style="width:100%">
		                  	<h:outputLink value="detail/detailArticle.xhtml">
								<h:outputText value="#{article.resume}"/>
								<f:param name="artTitre" value="#{article.titre}" />
							</h:outputLink>
		                </h:panelGrid>  
		            </p:panel>  
		        </p:column>  
	    	</p:dataGrid>
		</h:form>
	</ui:define>
</ui:composition>
</html>